//
//  ViewController.m
//  TestPresen
//
//  Created by Juvid on 16/8/8.
//  Copyright © 2016年 Juvid. All rights reserved.
//

#import "ViewController.h"
#import "TestViewController.h"
#import "PFBLogLevel.h"
#import "PFBLableImageView.h"
#import "UIView+JuLayGroup.h"
@interface ViewController ()

@end

@implementation ViewController
- (instancetype)init
{
    if ((self = [super init])) {
        self.modalPresentationStyle = UIModalPresentationCustom;
        self.transitioningDelegate = self;
    }
    return self;
}
- (void)viewDidLoad {
    [super viewDidLoad];



    LogError(@"error");
    LogAPI(@"API");
    LogWarm(@"warm");
    self.view.backgroundColor  = [UIColor brownColor];
    UIButton *btn = [[UIButton alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
    btn.backgroundColor = [UIColor yellowColor];
    [btn addTarget:self action:@selector(btnnnn) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];

    PFBLableImageView *labImage=[[PFBLableImageView alloc]init];
    labImage.backgroundColor=[UIColor greenColor];
    [self.view addSubview:labImage];
    labImage.juLead.equal(10);
    labImage.juTrail.lessEqual(10);
    labImage.juCenterY.equal(0);
    labImage.juHeight.equal(20);

    labImage.titleLable.text=@"这是条测试数据fhfsadfdgfdgfdsgfdsgdfsgfdsgfdsgsfdfjhgefefj";
    labImage.contentEdgeInsets=UIEdgeInsetsMake(0, 10, 0, 10);
//    labImage.imageString=@"bottom_active_03";
//    labImage.imageAlignment=PFBImageAlignmentRight;
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)btnnnn{
    TestViewController *testVC = [[TestViewController alloc] init];
    [self presentViewController:testVC animated:NO completion:^{}];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
